<?php 
include_once(''.P.'/public/header.html');
?>

<script type="text/javascript" src="res/bootstrapplugin/jquery-bootstable.js"></script>
<script type="text/javascript" src="res/menu/jquery-rockmenu.js"></script>
<link rel="stylesheet" type="text/css" href="res/menu/jquery-rockmenu.css">


<script>

function initbody(){
	
	table = $('#viewshow').bootstable({
		url:'index.php?m=party&a=data',method:'get',celleditor:true,tablename:'3',
		cellurl:'index.php',fanye:true,cellurl:'index.php?m=agent&a=savecell',
		columns:[{
			text:'名称',dataIndex:'name'
		},{
			text:'应用',dataIndex:'agentid',align:'left',sortable:true
		},{
			text:'浏览器',dataIndex:'web'
		},{
			text:'客服',dataIndex:'uid',align:'left',sortable:true
		},{
			text:'IP',dataIndex:'ip'
		},{
			text:'省份',dataIndex:'sheng',editor:true
		},{
			text:'城市',dataIndex:'city',editor:true
		},{
			text:'手机号',dataIndex:'mobile',editor:true
		},{
			text:'添加时间',dataIndex:'adddt'
		},{
			text:'最后在线',dataIndex:'zxdt',sortable:true
		},{
			text:'ID',dataIndex:'id',sortable:true
		},{
			text:'',dataIndex:'opts',renderer:function(s,d){
				var str='<a class="zhu" href="javascript:;" onclick="js.location(\'?m=party&a=mess&zxid='+d.id+'\')">记录</a>&nbsp;';
				str+='<a class="zhu" href="javascript:;" onclick="deleterecord('+d.id+',3,false)">删</a>';
				return str;
			}
		}]
	});
}

</script>
</head>

<body style="background:#f1f1f1">

<?php 
include_once(''.P.'/public/top.html');
?>

<div align="center">

<div style="width:<?=$maxwidth?>;margin:20px 0px" align="left">
	<div style="color:#cccccc">
		<a href="?m=index" class="zhu"><?=lang('admin.home')?></a> &gt;
		<a href="" class="zhu"><?=lang('admin.zixuntitle')?></a>
	</div>
	<div style="background-color:white;margin:20px 0px;border:1px #eeeeee solid;min-height:500px;border-radius:5px">
		<div style="padding:10px">
			
			<div id="viewshow"></div>
		</div>
		<div class="blank10"></div>
	</div>
</div>



<?php 
include_once(''.P.'/public/footer.html');
?>
</div>

</body>
</html>